package com.panshi.modules.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panshi.modules.domain.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 857
 * @since 2020-07-29
 */
@Repository
public interface SysUserMapper extends BaseMapper<SysUser> {

    //user-role关系表保存
    int saveUserRoleRelas(@Param("userId") Integer userId,@Param("roleIds") List<String> roleIds);

    //删除user-role
    void deleteUserRolesByUserId(Integer id);
}
